﻿<div class="BKLibrary_form">
<%= form_for(@user) do |f| %>
  <% if @user.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

      <ul>
      <% @user.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <fieldset>
  <legend><%= t('.fill') %></legend>
  <div class="field">
    <%= f.label :UserName,  t('.username')  %><br />
    <%= f.text_field :UserName %>
  </div>
  <div class="field">
    <%= f.label :Password,  t('.password') %><br />
    <%= f.password_field :Password %>
  </div>
  <div class="field">
    <%= f.label :password_confirmation, t('.confirm') %><br />
    <%= f.password_field :Password_confirmation %>
  </div>
  <div class="field">
    <%= f.label :LastName, t('.name1')  %><br />
    <%= f.text_field :LastName %>
  </div>
  <div class="field">
    <%= f.label :MidName,t('.name2')  %><br />
    <%= f.text_field :MidName %>
  </div>
  <div class="field">
    <%= f.label :FirstName, t('.name3')  %><br />
    <%= f.text_field :FirstName %>
  </div>
  <div class="field">
    <%= f.label :Address, t('.address')  %><br />
    <%= f.text_field :Address %>
  </div>
  <div class="field">
    <%= f.label :BirthDay, t('.birthday')  %><br />
    <%= f.date_select :BirthDay, :order => [:day,:month,:year], :start_year => 1950, :end_year => 2012, :use_month_numbers => true %>
  </div>
  <div class="field">
    <%= f.label :EmailAddress, t('.mail')  %><br />
    <%= f.email_field :EmailAddress %>
  </div>
  <div class="actions">
    <%= f.submit  t('.submit') %>
  </div>
  </fieldset>
<% end %>
</div>
